/* Background Overlay */
.treatment-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.treatment-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.treatment-popup-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 490px;
  border-radius: 4px;
  padding: 30px 24px 24px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  transform: translateY(-10px);
  transition: transform 0.25s ease;
}

.treatment-popup-overlay.active .treatment-popup-modal {
  transform: translateY(0);
}

/* Red Circular Close Button overlapping top-right */
.treatment-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  background-color: #e53935;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  outline: none;
  padding: 0;
  transition: background-color 0.2s;
}

.treatment-popup-close:hover {
  background-color: #c62828;
}

/* Header & Titles */
.treatment-popup-header {
  text-align: center;
  margin-bottom: 18px;
}

.treatment-popup-header .treatment-logo {
  max-height: 60px;
  width: auto;
  margin-bottom: 12px;
}

.treatment-popup-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 6px 0;
}

.treatment-popup-header h2 .highlight-green {
  color: #6bb024;
}

.treatment-popup-header p {
  font-size: 15px;
  color: #222222;
  margin: 0;
}

/* Form Fields */
.treatment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  width: 100%;
}

.form-control {
  width: 100%;
  border: 1px solid #777777;
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 14px;
  color: #333333;
  outline: none;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: #6e6e6e;
}

.form-control:focus {
  border-color: #6bb024;
}

textarea.form-control {
  resize: vertical;
}

/* Split Rows */
.split-two {
  gap: 10px;
}

.split-two > * {
  flex: 1;
}

.split-age-gender {
  gap: 12px;
  align-items: center;
}

.age-field {
  width: 120px;
  flex-shrink: 0;
}

.gender-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #222222;
  flex-wrap: wrap;
}

.gender-label {
  font-weight: 500;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

/* Country Selector wrapper */
.country-select-wrapper {
  position: relative;
  flex: 1;
}

.select-country {
  padding-top: 14px;
  padding-bottom: 4px;
  background-color: #fff;
  cursor: pointer;
}

.country-hint {
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 9px;
  color: #72a32c;
  pointer-events: none;
  font-weight: 600;
}

/* Footer: Captcha + Submit */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.captcha-placeholder {
  flex: 1;
}

.mock-captcha {
  border: 1px solid #d3d3d3;
  background: #f9f9f9;
  border-radius: 3px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #333;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
}

.captcha-icon {
  margin-left: auto;
  text-align: center;
  font-size: 8px;
  color: #777;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.captcha-icon i {
  font-size: 14px;
  color: #4285f4;
}

/* Green Submit Button */
.treatment-submit-btn {
  background-color: #72b017;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
  min-width: 140px;
  height: 44px;
}

.treatment-submit-btn:hover {
  background-color: #619a11;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .split-two, .split-age-gender, .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .age-field {
    width: 100%;
  }
  .treatment-submit-btn {
    width: 100%;
  }
}